package com.lavida.project.system.emp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lavida.project.system.emp.domain.Emphistory;
import com.lavida.project.system.emp.mapper.EmphistoryMapper;
import com.lavida.project.system.emp.mapper.EmpleaveMapper;

@Service
public class EmphistoryServiceImpl implements EmphistoryService{
	@Autowired 
	private EmpleaveMapper empleaveMapper;
	@Autowired 
	private EmphistoryMapper emphistoryMapper;
	@Override
	public List<Emphistory> selectEmphistory(Emphistory emphistory) {
		// TODO Auto-generated method stub
		return emphistoryMapper.selectEmphistory(emphistory);
	}
	@Override
	public int insertEmphistory(Emphistory emphistory) {
		// TODO Auto-generated method stub
		return emphistoryMapper.insertEmphistory(emphistory);
	}
	@Override
	public void deleteEmphistory(int[] ids) {
		// TODO Auto-generated method stub
		for(Integer id:ids) {
			emphistoryMapper.deleteEmphistory(id);
		}
	}
	@Override
	public void deleteEmphistoryj(int[] job_ids) {
		// TODO Auto-generated method stub
		for(Integer job_id:job_ids) {
			emphistoryMapper.deleteEmphistoryj(job_id);
		}
	}
	@Override
	public List<Emphistory> selectEmphistoryById(Integer job_id) {
		// TODO Auto-generated method stub
		return emphistoryMapper.selectEmphistoryById(job_id);
	}
	@Override
	public Emphistory selectEmphistoryByIdr(Integer id) {
		// TODO Auto-generated method stub
		return emphistoryMapper.selectEmphistoryByIdr(id);
	}
	@Override
	public int updateEmphistory(Emphistory emphistory) {
		// TODO Auto-generated method stub
		return emphistoryMapper.updateEmphistory(emphistory);
	}
}
